// 保险产品api
import request from '@/utils/request'

export default {
  // 条件分页查询
  queryFinancialProduct(params) {
    const url = 'socialized-insure/product/queryPageByCondition'
    return request.post(url, params)
  },
  // 添加
  add(params) {
    const url = 'socialized-insure/product/add'
    return request.post(url, params)
  },
  // 修改
  edit(params) {
    const url = 'socialized-insure/product/edit'
    return request.put(url, params)
  },
  // 删除
  del(params, id) {
    const url = `socialized-insure/product/del?id=${id}`
    return request.delete(url, { params })
  },
  // 批量删除
  delList(params) {
    const url = 'socialized-insure/product/delList'
    return request.delete(url, { params })
  },
  // 条件查询产品
  queryByConditionProduct(params) {
    const url = 'socialized-insure/product/queryByCondition'
    return request.post(url, params)
  }
}
